package com.vhall.component.controller.goods;

import com.vhall.component.controller.goods.facade.LiveGoodsConsoleFacade;
import com.vhall.component.entity.goods.goods.*;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.TokenAuth;
import com.vhall.component.service.goods.LiveGoodsConsoleService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * console端接口
 *
 * @author guoxin.wang
 * @date 2021-10-12 14:02
 */
@VhallComponent
public class LiveGoodsConsoleController implements LiveGoodsConsoleFacade {

    @Autowired
    private LiveGoodsConsoleService liveGoodsConsoleService;

    @Override
    public GoodsPage<LiveGoodsConsoleBindListRspVO> getBindList(LiveGoodsConsoleBindListReqVO reqVO) {
        return liveGoodsConsoleService.getBindList(reqVO);
    }

    @TokenAuth
    @Override
    public GoodsPage<LiveGoodsConsoleUnBindListRspVO> getUnBindList(LiveGoodsConsoleUnBindListReqVO reqVO) {
        return liveGoodsConsoleService.getUnBindList(reqVO);
    }

    @TokenAuth
    @Override
    public Boolean bindGoods(LiveGoodsConsoleBindGoodsReqVO reqVO) {
        return liveGoodsConsoleService.bindGoods(reqVO);
    }

    @TokenAuth
    @Override
    public Boolean unBindGoods(LiveGoodsConsoleUnBindGoodsReqVO reqVO) {
        return liveGoodsConsoleService.unBindGoods(reqVO);
    }

    @TokenAuth
    @Override
    public Boolean updateSort(LiveGoodsConsoleUpdateSortGoodsReqVO reqVO) {
        return liveGoodsConsoleService.updateSort(reqVO);
    }


}
